package com.itlong.cloud.POJO.VO.property;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * <desc>
 *      用户设备权限-用户设备列表-用以获取最终用户权限
 * </desc>
 *
 * @createDate 2017/10/13
 */
@Data
@NoArgsConstructor
public class AppUserDeviceAuthsVO {
    private String userId;      //用户Id
    private String authUserId;  //授权人ID，可能为用户id也可能为物业账号id
    private Integer authType;   //操作权限类型
    private String projectId;   //项目Id
    List<AppUserGetDeviceAuthVO> appUserGetDeviceAuthVOS;   //用户设备列表集

    public AppUserDeviceAuthsVO(String userId, String projectId, List<AppUserGetDeviceAuthVO> appUserGetDeviceAuthVOS) {
        this.userId = userId;
        this.projectId = projectId;
        this.appUserGetDeviceAuthVOS = appUserGetDeviceAuthVOS;
    }

    public AppUserDeviceAuthsVO(String userId, String projectId, String authUserId) {
        this.userId = userId;
        this.projectId = projectId;
        this.authUserId = authUserId;
    }
}
